package com.maiji.cloud.entities.login;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "area_info")
public class AreaInfo {

    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId;

    @Column(name = "province", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String province;

    @Column(name = "city", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String city;

    @Column(name="city_code",type = MySqlTypeConstant.VARCHAR,length = 8)
    private String cityCode; //城市code

    @Column(name = "county", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String county;

    @Column(name="ad_code",type = MySqlTypeConstant.VARCHAR,length = 8)
    private String adCode; //区县code

    @Column(name = "lon", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double lon;  // 经度

    @Column(name = "lat", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double lat;  // 纬度

    @Column(name = "address", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String address;
}
